/*
 * @Author: Luo jiaxing
 * @Date: 2017-05-22 14:27:12
 * @Last Modified by: Luo jiaxing
 * @Last Modified time: 2017-10-20 12:00:49
 * 新建方案
 */
Ext.define('Admin.view.solutionManage.newSolutions.YearStep', {
    extend: 'Ext.tab.Panel',
    xtype: 'newYearSolution',
    height: '100%',
    margin: '5 10 10 10',
    cls: 'hide-x-tab-bar',
    layout: {
        align: 'stretch'
    },
    id: 'yearSolutionTab',
    items: [],
    listeners: {
        beforeshow: function (_this) {
            $.dispatch.setType('year');
        },
        afterrender: function () {
            $.dispatch.setType('year');
            if (!$.dispatch.getEdit()) {
                Ext.getCmp('yearSolutionTab').add({
                    xtype: 'baseYearSolutionInfo'
                });
            }
        }
    }
});
